package com.zjhn.ds.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @BelongsProject: equipment-and-energy
 * @BelongsPackage: com.zjhn.common.constant
 * @Author: sxt
 * @CreateTime: 2023-06-15  13:45
 * @Description: 分页参数
 * @Version: 1.0
 */
@Data
public class PageBean {
    @JsonProperty("current")
    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "当前页不能为空")
    private Long current;

    @JsonProperty("size")
    @ApiModelProperty(value = "页大小", required = true)
    @NotNull(message = "页大小不能为空")
    private Long size;
}
